package com.hw.springcloud.controller;

import com.hw.springcloud.service.PaymentNacosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname: NacosController
 * @Description: 描述
 * @Date: 2021/12/9
 * @Author: HuWei
 */
@RequestMapping("/nacos")
@RestController
public class PaymentNacosController {

    @Autowired
    PaymentNacosService paymentNacosService;

    /**
     * 检查是否注册进nacos
     */
    @GetMapping("/payment/linkTest")
    public String NacosLinkTest() {
        return paymentNacosService.nacosLinkTest();
    }

}